package com.example.demo.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat;
import java.util.Date;
import com.baomidou.mybatisplus.annotation.IdType;
import java.io.Serializable;


@TableName("story")
@Data
public class Story implements Serializable{


    /**
     *@description
     */
    @TableId(value="id",type = IdType.AUTO)
    private Integer id;

    /**
     *@description
     */
    @TableField("uuid")

    private String uuid;

    /**
     *@description
     */
    @TableField("title")

    private String title;

    /**
     *@description
     */
    @TableField("content")

    private String content;

    /**
     *@description
     */
    @TableField("mulu")

    private String mulu;

    /**
     *@description
     */
    @TableField("create_time")

    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")//返回前端字段转换

    private Date createTime;




    /**
     *@description
     */
    @TableField("update_time")

    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")//返回前端字段转换

    private Date updateTime;

    /**
     *@description
     */
    @TableField("version")

    private String version;

    /**
     *@description
     */
    @TableField("is_delete")

    private String isDelete;


}